package com.junxonline.plat.controller.repair;

import com.junxonline.common.dao.vo.ResultVO;
import com.junxonline.common.util.CommonUtils;
import com.junxonline.plat.controller.base.BaseController;
import com.junxonline.plat.dao.vo.*;
import com.junxonline.plat.exception.ErrorCodeEnum;
import com.junxonline.plat.service.repair.RepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JunX
 * @ClassName: RepairController
 * @Description: 检修控制器
 */

@RestController
@RequestMapping(value = "/admin/repair")
public class RepairController extends BaseController {

    @Autowired
    private RepairService repairService;

    /**
     * 筛选查询检修数据
     * @param page
     * @param vo
     * @return
     */
    @RequestMapping(value = "/queryRepair")
    public PageResultVO queryRepair(PageVO page, QueryDeviceCheckVO vo) {
        return getReturnSuccess(repairService.queryRepair(page, vo));
    }


}
